<?php

namespace app\common\model;

use think\Model;

class News extends Model{

    // 表名
    protected $name = 'news';

    // 追加属性
    protected $append = [
        'create_time_text'
    ];

    public function getCateNameList(){
        $arr=[
            "攻略汇总",
            "新游评测",
            "游戏新闻",
            "热门游戏"
        ];

        return $arr;
    }

}
